﻿@model TJBHJJ.Models.News
@using TJBHJJ.Models
@{
    ViewBag.Title = "公司动态";
    Layout = "~/Views/Shared/_Layout.cshtml";

    List<News> group = (List<News>)ViewData["group"];

}
<h2>@Html.ActionLink("公司动态", "Index", new { page = (int)ViewData["page"] })>>@Model.Title</h2>
<table>
@*    <tr>
        <td colspan="2">
        @if (Model.PicUrl != "")
        {
            <img  src=@Model.PicUrl alt="新闻图片" />
        }
        </td>
    </tr>*@
    <tr>
        <td colspan="2">@Html.DisplayFor(model => model.Content)
        </td>
    </tr>
    <tr>
        <td colspan="2">
            作者：@Html.DisplayTextFor(model => model.Author)
        </td>
    </tr>
    <tr>
        <td>
            下一篇：
            @if (group[0] != null)
            {
                @Html.ActionLink(group[0].Title, "Detail", new { page = (int)ViewData["page"], id = group[0].Id })
            }
        </td>
        <td>
            上一篇：
            @if (group[2] != null)
            {
                @Html.ActionLink(group[2].Title, "Detail", new { page = (int)ViewData["page"], id = group[2].Id })
            }
        </td>
    </tr>
</table>
@* <fieldset>

    <legend>News</legend>
   <div class="display-label">
        GuidGid</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.GuidGid)
    </div>
    <div class="display-label">
        Title</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>
    <div class="display-label">
        Content</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Content)
    </div>
   <div class="display-label">
        Author</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Author)
    </div>
    <div class="display-label">
        ReadCount</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ReadCount)
    </div>
    <div class="display-label">
        CreatTime</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CreatTime)
    </div>
    <div class="display-label">
        Url</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Url)
    </div>
    <div class="display-label">
        IsCommend</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsCommend)
    </div>
    <div class="display-label">
        IsDisplay</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsDisplay)
    </div>
    <div class="display-label">
        HtmlUrl</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.HtmlUrl)
    </div>
    <div class="display-label">
        PicUrl</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PicUrl)
    </div>
    <div class="display-label">
        ClassId</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ClassId)
    </div>
    <div class="display-label">
        Remark</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Remark)
    </div>
</fieldset>*@ 